What is the advantage of placing "{" on the same line as a conditional statement?
Posted
by DrLazer
on Stack Overflow
See other posts from Stack Overflow
or by DrLazer
Published on 2010-04-15T09:16:59Z
Indexed on
2010/04/15
9:23 UTC
Read the original article
Hit count: 166
I have kind of got used to it now but in the past if i had to work on a piece of code someone else had written with the brackets placed in this way I would have to go through and change it all. Why would anybody do this, I can't think of a single advantage but lots of disadvantages.
© Stack Overflow or respective owner